#ifndef ENTITY2D
#define ENTITY2D
#include "Renderer.h"
class ENGINE_API Entity2D{
	float posX;
	float posY;
	float posZ;
	float sizeX;
	float sizeY;
	float rotation;
	bool visible;
	char* name;
	int vtxCount;
	D3DPRIMITIVETYPE primType;
	D3DVERTEX* vertices;
	DWORD color;
public:
	Entity2D();
	void Draw(Renderer* renderer);
	void SetColor(DWORD color);
	void SetVertexColor(int i,DWORD color);
	DWORD GetColor();
	void SetPos(float x, float y, float z){posX = x; posY=y;posZ=z;}
	void SetPosX(float x){posX=x;}
	void SetPosY(float y){posY=y;}
	void SetPosZ(float z){posZ=z;}
	void SetSizeX(float x){sizeX=x;};
	void SetSizeY(float y){sizeY=y;};
	void SetAngle(float _angle){rotation = _angle;}
	void SetVisible(bool vis){visible=vis;}
	void SetName(char* _name){name=_name;}
	void SetPrimType(D3DPRIMITIVETYPE type){primType=type;}
	void SetVertices(D3DVERTEX* ver){vertices=ver;}
	void SetCount(int count){vtxCount=count;}

	float GetRot(){return rotation;}
	float GetPosX(){return posX;}
	float GetPosY(){return posY;}
	float GetSizeX(){return sizeX;}
	float GetSizeY(){return sizeY;}
	bool GetVisible(){return visible;}
	char* GetName(){return name;}
	//virtual void Update(float timeBetweenFrames);
};
#endif